<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>信息模板设置</strong></div>
        <div class="padding border-bottom">
            <a href="{:U('/Msgtpl/index')}" class="button button-small border-green">信息模板</a>
            <a class="button button-small bg-green">添加模板</a>
            <a href="{:U('/Config/email')}" class="button button-small border-green">邮件信息设置</a>
            <a href="{:U('/Config/mobile')}" class="button button-small border-green">手机短信设置</a>
        </div>
        <div class="fixed-empty"></div>
        <form method="post" id="myform" name="myform" action="">
            <table class="table tb-type2">
                <tbody>
                    <tr>
                        <td width="10%"  class="required"><label>是否启用手机短信功能:</label></td>
                        <td width="30%" class="vatop rowform onoff">
                            <div class="form-group">
                                <div class="field">
                                    <div class="button-group radio">
                                        <label class="button active">
                                            <input name="is_mobile" value="1" checked="checked" type="radio"><span class="icon icon-check"></span> 开启
                                        </label>
                                        <label class="button">
                                            <input name="is_mobile" value="0" type="radio"><span class="icon icon-times"></span> 关闭
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </td>
                        <td class="vatop tips">开启后将在相应的操作发送短信</td>
                    </tr>
                    <tr>
                        <td class="required"><label>是否启用邮件发送功能:</label></td>
                        <td class="vatop rowform onoff">
                            <div class="form-group">
                                <div class="field">
                                    <div class="button-group radio">
                                        <label class="button active">
                                            <input name="is_email" value="1" checked="checked" type="radio"><span class="icon icon-check"></span> 开启
                                        </label>
                                        <label class="button">
                                            <input name="is_email" value="0" type="radio"><span class="icon icon-times"></span> 关闭
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </td>
                        <td class="vatop tips">开启后将在相应的操作发送邮件</td>
                    </tr>

                    <tr>
                        <td class="required"><label class="validation" for="title">模版名称:</label></td>
                        <td class="vatop rowform">
                            <input id="titles" name="title" value="" class="input input_big" type="text">
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="mobile">短信模版内容:</label></td>
                        <td class="vatop rowform">
                            <textarea name="mobile" rows="6" class="input input_big"></textarea>
                        </td>
                        <td class="vatop tips">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="wx_appkey">邮件模版内容:</label></td>
                        <td class="vatop" style="width:540px;">
                            <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/ueditor.config.js"></script>
                            <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/ueditor.all.min.js"></script>
                            <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
                            <textarea id="email" type="text/plain" style="width:100%;height:200px;" name="email" ></textarea>
                            <script>
                                var ue = UE.getEditor('email');
                                UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
                                UE.Editor.prototype.getActionUrl = function (action) {
                                    if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
                                        return '{:ADMIN_URL}/Admin/ueditor';
                                    } else {
                                        return this._bkGetActionUrl.call(this, action);
                                    }
                                }
                            </script>
                        </td>
                        <td class="vatop tips">&nbsp;</td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr class="tfoot">
                        <td colspan="3"><input type="submit" value="提交" class="button bg-main" /></td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $('#myform').layer({});
</script>
